home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / live / usr / X11R6 / lib / X11 / etc / xterm.termcap < prev    next >
Encoding:
Text File  |  2002-11-14  |  8.0 KB  |  189 lines

  1. # $Xorg: termcap,v 1.3 2000/08/17 19:55:10 cpqbld Exp $
  2. #
  3. # Note:
  4. #    termcap format is limited to 1023 characters.  This set of descriptions
  5. #    is a subset of the terminfo, since not all features can be fit into
  6. #    that limit.  The 'xterm' description supports color.  The monochrome
  7. #    'xtermm' drops color in favor of additional function keys.  If you need
  8. #    both, use terminfo.
  9. #
  10. #    The 1023-character limit applies to each entry after resolving the
  11. #    "tc=" strings.  Some implementations may discount all or part of the
  12. #    formatting characters in the entry (i.e., the backslash newline tab
  13. #    colon).  GNU termcap does not have this limit.
  14. #
  15. #    I checked the limits using ncurses "captoinfo -CrTv", which prints
  16. #    the resolved length of each entry in a comment at the end - T.Dickey
  17. #
  18. # $XFree86: xc/programs/xterm/termcap,v 3.28 2001/01/17 23:46:39 dawes Exp $
  19. #
  20. xf|xterm-xfree86|XFree86 xterm:\
  21.     :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
  22.     :k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
  23.     :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\
  24.     :kH=\EOF:@7=\EOF:kI=\E[2~:\
  25.     :kh=\EOH:*6=\EOF:kP=\E[5~:kN=\E[6~:\
  26.     :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:Km=\E[M:tc=xterm-basic:
  27. #
  28. # This chunk is used for building the VT220/Sun/PC keyboard variants.
  29. xb|xterm-basic|xterm common (XFree86):\
  30.     :li#24:co#80:am:kn#12:km:mi:ms:xn:bl=^G:\
  31.     :is=\E[!p\E[?3;4l\E[4l\E>:rs=\E[!p\E[?3;4l\E[4l\E>:\
  32.     :AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:al=\E[L:dc=\E[P:dl=\E[M:\
  33.     :UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\
  34.     :ho=\E[H:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:\
  35.     :im=\E[4h:ei=\E[4l:ks=\E[?1h\E=:ke=\E[?1l\E>:kD=\E[3~:kb=^H:\
  36.     :sf=\n:sr=\EM:st=\EH:ct=\E[3g:sc=\E7:rc=\E8:\
  37.     :eA=\E(B\E)0:as=^N:ae=^O:ml=\El:mu=\Em:up=\E[A:nd=\E[C:\
  38.     :md=\E[1m:me=\E[m^O:mr=\E[7m:so=\E[7m:se=\E[27m:us=\E[4m:ue=\E[24m:\
  39.     :ti=\E[?1049h:te=\E[?1049l:vi=\E[?25l:ve=\E[?25h:\
  40.     :ut:Co#8:pa#64:op=\E[39;49m:AB=\E[4%dm:AF=\E[3%dm:\
  41.  
  42. # The xterm-xfree86 description has all of the features, but is not completely
  43. # compatible with vt220.  If you are using a Sun or PC keyboard, set the
  44. # sunKeyboard resource to true:
  45. #    + maps the editing keypad
  46. #    + interprets control-function-key as a second array of keys, so a
  47. #      12-fkey keyboard can support vt220's 20-fkeys.
  48. #    + maps numeric keypad "+" to ",".
  49. #    + uses DEC-style control sequences for the application keypad.
  50. #
  51. vt|xterm-vt220|xterm emulating vt220:\
  52.     :kH=\E[4~::@7=\E[4~:*6=\E[4~:kh=\E[1~:Km=\E[M:tc=xterm-basic:
  53.  
  54. v1|xterm-24|xterms|vs100|24x80 xterm:\
  55.     :li#24:\
  56.     :tc=xterm:
  57. v2|xterm-65|65x80 xterm:\
  58.     :li#65:tc=xterm:
  59. vb|xterm-bold|xterm with bold for underline:\
  60.     :so=\E[7m:us=\E[1m:tc=xterm:
  61. vb|xterm-boldso|xterm with bold for standout:\
  62.     :se=\E[m:so=\E[1m:tc=xterm:
  63. vm|xterm-mono|monochrome xterm:\
  64.     :kn#20:\
  65.     :st@:ut@:Co@:NC@:op@:AB@:AF@:pa@:Sf@:Sb@:tc=xterm:
  66. #
  67. # Alternate terminal description that "works" for interactive shells such as
  68. # tcsh and bash.
  69. xn|xterm-noapp|xterm with cursor keys in normal mode:\
  70.     kl=\E[D:kd=\E[B:kr=\E[C:ku=\E[A:ks=\E=:ke=\E>:ti@:te@:tc=xterm:
  71. #
  72. # This should work for the commonly used "color xterm" variations (XFree86
  73. # xterm, color_xterm, nxterm, rxvt).  Note that it does not set 'bce', so for
  74. # XFree86 and and rxvt, some applications that use colors will be less
  75. # efficient, and in a few special cases (with "smart" optimization) the wrong
  76. # color will be painted in spots.
  77. vc|xterm-color|generic "ANSI" color xterm:\
  78.     :Co#8:NC@:pa#64:op=\E[m:AB=\E[4%dm:AF=\E[3%dm:ac@:tc=xterm-r6:
  79. #
  80. # These aliases are for compatibility with the terminfo; termcap cannot provide
  81. # the extra features, but termcap applications still want the names.
  82. x1|xterm-16color|xterm alias:tc=xterm-xfree86:
  83. x2|xterm-88color|xterm alias:tc=xterm-256color:
  84. x3|xterm-256color|xterm alias:tc=xterm-xfree86:
  85. xn|xterm-nrc|xterm alias:tc=xterm:
  86. xr|xterm-rep|xterm alias:tc=xterm:
  87. xx|xterm-xmc|xterm alias:sg#1:tc=xterm:
  88. #
  89. # An 8-bit description is doable with termcap, but there are probably no
  90. # termcap (or BSD curses) applications that are able to use it.
  91. x8|xterm-8bit|xterm terminal emulator 8-bit controls (X Window System):\
  92.     :co#80:li#24:\
  93.     :it#8:am:km:mi:ms:xn:\
  94.     :AL=\233%dL:DC=\233%dP:DL=\233%dM:DO=\233%dB:IC=\233%d@:LE=\233%dD:\
  95.     :RI=\233%dC:UP=\233%dA:ae=^O:al=\233L:as=^N:bl=^G:bt=\233Z:\
  96.     :cd=\233J:ce=\233K:cl=\233H\2332J:cm=\233%i%d;%dH:cr=^M:\
  97.     :cs=\233%i%d;%dr:ct=\2333g:dc=\233P:dl=\233M:do=^J:up=\233A:nd=\233C:\
  98.     :ei=\2334l:ho=\233H:im=\2334h:\
  99.     :is=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8:\
  100.     :k1=\23311~:k2=\23312~:k3=\23313~:k4=\23314~:k5=\23315~:\
  101.     :k6=\23317~:k7=\23318~:k8=\23319~:k9=\23320~:kD=\2333~:\
  102.     :kI=\2332~:kN=\2336~:kP=\2335~:kb=^H:kd=\217B:\
  103.     :ke=\233?1l\E>:kh=\2331~:kl=\217D:kr=\217C:ks=\233?1h\E=:\
  104.     :ku=\217A:le=^H:mb=\2335m:md=\2331m:me=\233m^O:mr=\2337m:\
  105.     :rc=\E8:sc=\E7:se=\23327m:sf=^J:so=\2337m:sr=\215:\
  106.     :st=\210:ta=^I:te=\233?1049l:ti=\233?1049h:ue=\23324m:us=\2334m:\
  107.     :vb=\233?5h\233?5l:ve=\233?25h:vi=\233?25l:Km=\233M:
  108. #
  109. hp|xterm-hp|XFree86 xterm with hpterm function keys:\
  110.     :k1=\Ep:k2=\Eq:k3=\Er:k4=\Es:k5=\Et:k6=\Eu:k7=\Ev:k8=\Ew:\
  111.     :kC=\EJ:kD=\EP:@7=\EF:kI=\EQ:kN=\ES:kP=\ET:kh=\Eh:\
  112.     :kd=\EB:kl=\ED:kr=\EC:ku=\EA:tc=xterm-basic:
  113. #
  114. xS|xterm-sco|XFree86 xterm with SCO function keys:\
  115.     :kl=\E[D:kd=\E[B:kr=\E[C:ku=\E[A:@7=\E[F:\
  116.     :k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:\
  117.     :k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:k;=\E[V:\
  118.     :F1=\E[W:F2=\E[X:F3=\E[Y:F5=\E[a:F6=\E[b:\
  119.     :F7=\E[c:F8=\E[d:F9=\E[e:FA=\E[f:FB=\E[g:\
  120.     :FC=\E[h:FD=\E[i:FE=\E[j:FF=\E[k:\
  121.     :kh=\E[H:kI=\E[L:kN=\E[G:kP=\E[I:ac@:tc=xterm-basic:
  122. #
  123. v5|xterm-vt52|xterm emulating vt52:\
  124.     :bs:\
  125.     :co#80:it#8:li#24:\
  126.     :ae=\EG:as=\EF:bl=^G:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :\
  127.     :cr=^M:do=\EB:ho=\EH:kb=^H:kd=\EB:kl=\ED:kr=\EC:ku=\EA:\
  128.     :le=\ED:nd=\EC:nw=^M^J:sf=^J:sr=\EI:ta=^I:up=\EA:
  129. #
  130. xs|xterm-sun|xterm with Sun functionkeys:\
  131.     :k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:\
  132.     :k5=\E[228z:k6=\E[229z:k7=\E[230z:k8=\E[231z:\
  133.     :k9=\E[232z:k;=\E[233z:F1=\E[192z:F2=\E[193z:\
  134.     :%1=\E[196z:&8=\E[195z:@0=\E[200z:kI=\E[2z:\
  135.     :kN=\E[222z:kP=\E[216z:kh=\E[214z:kD=^?:\
  136.     :Km=\E[M:@5=\E[197z::@7=\E[220z:\
  137.     :tc=xterm-basic:
  138. #
  139. # vi may work better with this entry, because vi doesn't use insert mode much.
  140. # |xterm-ic|xterm-vi|xterm with insert character instead of insert mode:\
  141. vi|xterm-ic|xterm-vi|xterm with insert char:\
  142.     :im@:ei@:mi@:ic=\E[@:IC=\E[%d@:tc=xterm:
  143. #
  144. # Compatible with the X11R6.3 xterm
  145. r6|xterm-r6|xterm-old|X11R6 xterm:\
  146.     :is=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8:\
  147.     :rs=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8:\
  148.     :AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:DO=\E[%dB:UP=\E[%dA:\
  149.     :LE=\E[%dD:RI=\E[%dC:al=\E[L:am:bl=^G:\
  150.     :bs:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:co#80:\
  151.     :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:ho=\E[H:\
  152.     :im=\E[4h:ei=\E[4l:mi:ks=\E[?1h\E=:ke=\E[?1l\E>:@7=\E[4~:kh=\E[1~:\
  153.     :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
  154.     :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
  155.     :F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:\
  156.     :F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:\
  157.     :kn#20:km:@0=\E[1~:kI=\E[2~:kD=^?:*6=\E[4~:kP=\E[5~:kN=\E[6~:\
  158.     :kb=^H:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:\
  159.     :li#24:md=\E[1m:me=\E[m:mr=\E[7m:ms:nd=\E[C:pt:\
  160.     :eA=\E)0:as=^N:ae=^O:ml=\El:mu=\Em:\
  161.     :sc=\E7:rc=\E8:sf=\n:so=\E[7m:se=\E[m:sr=\EM:\
  162.     :ti=\E7\E[?47h:te=\E[2J\E[?47l\E8:up=\E[A:us=\E[4m:ue=\E[m:xn:
  163. #
  164. # Compatible with the R5 xterm
  165. r5|xterm-r5|X11R5 xterm X11R5:\
  166.     :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:UP=\E[%dA:\
  167.     :al=\E[L:am:\
  168.     :bs:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:co#80:\
  169.     :cs=\E[%i%d;%dr:ct=\E[3g:\
  170.     :dc=\E[P:dl=\E[M:\
  171.     :im=\E[4h:ei=\E[4l:mi:\
  172.     :ho=\E[H:\
  173.     :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
  174.     :rs=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H:\
  175.     :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:kb=^H:kd=\EOB:ke=\E[?1l\E>:\
  176.     :kl=\EOD:km:kn#4:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:\
  177.     :@7=\E[4~:kh=\E[1~:\
  178.     :li#24:md=\E[1m:me=\E[m:mr=\E[7m:ms:nd=\E[C:pt:\
  179.     :sc=\E7:rc=\E8:sf=\n:so=\E[7m:se=\E[m:sr=\EM:\
  180.     :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\
  181.     :up=\E[A:us=\E[4m:ue=\E[m:xn:
  182. #
  183. # This is the only entry which you should have to customize, since "xterm"
  184. # is widely used for a variety of incompatible terminal emulations including
  185. # color_xterm and rxvt.
  186. v0|xterm|X11 terminal emulator:\
  187.     :tc=xterm-xfree86:
  188. #    :tc=xterm-r6:
  189.